package com.woniuxy.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 岗位管理
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PerformancePost对象", description="岗位管理")
public class PerformancePost implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "岗位名称")
    private String name;

    @ApiModelProperty(value = "岗位类别")
    private String category;

    @ApiModelProperty(value = "查看权限")
    private String permission;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "父id")
    private Long fid;

    @ApiModelProperty(value = "修改记录id")
    private Long recordId;

    @TableField(exist = false)
    private DataRecord record;

    @ApiModelProperty(value = "子岗位")
    @TableField(exist = false)
    List<PerformancePost> children;

    @ApiModelProperty(value = "父岗位名称")
    @TableField(exist = false)
    String parentPostName;
}
